<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
          "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html" xmlns:p="http://primefaces.org/ui"
	xmlns:f="http://java.sun.com/jsf/core">
<h:head>
	<title>Login</title>

	<style type="text/css">
#form_login {
	width: 400px;
	margin-top: 15%;
}

#msg_erro {
	color: red;
}

body {
	font-size: 12px;
}
</style>
</h:head>

<h:body>
	<div id="content" align="center">

		<form id="form_login" method="post" action="/schola-ratio-webapp/j_spring_security_check">
			<div class="ui-panel ui-widget">
				<div class="ui-widget-header ui-corner-all">
					<span style="font-size: 16px ;">Área Restrita</span>
				</div>
				<div class="ui-panel-content ui-widget-content ui-corner-all">
					<table cellpadding="5">
						<tbody>
							<tr>
								<td><label for="j_username"> Usuario</label></td>
								<td><input id="j_username" type="text" name="j_username" /></td>
							</tr>
							<tr>
								<td><label for="j_password"> Senha</label></td>
								<td><input id="j_password" type="password" name="j_password" /></td>
							</tr>
							<tr>
								<td><input class="ui-widget ui-state-default ui-corner-all " id="submit" type="submit" name="submit" value="Entrar" /></td>
								<td><input class="ui-widget ui-state-default ui-corner-all " type="reset" name="j_idt11" value="Limpar" /></td>
							</tr>
						</tbody>
					</table>
					<h:panelGroup rendered="#{param.login_erro==1}">
						<span id="msg_erro">Verifique o usuario e/ou senha!<br/></span>
					</h:panelGroup>
					
				</div>

				<div class="ui-panel-footer ui-widget-content ui-corner-all">TCC - Facet 2012 -
					Djulles IKEDA e Osnir F CUNHA</div>
			</div>
		</form>
	</div>
</h:body>
</html>
